public class Degrees
{
   
   public String convert(double decimalDegrees)
   {   
      String degSymbol = "\u00B0";
      double d=decimalDegrees;
      double m=decimalDegrees*100-(int)d*100;
      double n=(decimalDegrees*100000-(int)d*100000-(int)m*1000+1)*36/1000;
      m=m*6/10;
      int dd=(int)d;
      int mm=(int)m;
      int nn=(int)n;
      degSymbol = dd+degSymbol+mm+"'"+nn+'"';
      return degSymbol;
   }
}